// 路径：项目根目录/0918/Phone.cs
namespace _0918
{
    public class Phone
    {
        // 严格匹配题目变量名
        public string Brand;   // 品牌
        public int Weight;     // 重量
        public long Camera;    // 摄像头像素
        public int Price;      // 价格

        // 构造方法：初始化所有变量
        public Phone(string brand, int weight, long camera, int price)
        {
            Brand = brand;
            Weight = weight;
            Camera = camera;
            Price = price;
        }

        // 打印方法：输出所有信息
        public void PrintPhoneDetails()
        {
            Console.WriteLine($"品牌(brand): {Brand}");
            Console.WriteLine($"重量(weight): {Weight}g");
            Console.WriteLine($"后置摄像头像素(camera): {Camera:N0}");
            Console.WriteLine($"价格(price): {Price}");
        }
    }
}